class Config:
    """多套环境的公共配置"""
    version = "v1.0"
    # 企业微信通知
    # WE_COM = {
    #     "token": "823c859e-7038-4c28-a601-dfdf3466ac0d",
    #     "text": "-查看报告地址:"
    # }


class TestConfig(Config):
    """测试环境"""
    BASE_URL = "http://test.wistore.net/"
    USERNAME_WDZ = '龙'
    PASSWORD_WDZ = '666666a'
    USERNAME_APP = '18900000006'
    PASSWORD_APP = '66666666a'
    DB_INFO={
        "host": "rm-bp1a94qb6l3zohzbhmo.mysql.rds.aliyuncs.com",
        "port": 3306,
        "user": "root",
        "password": "2$yWSSa7eUE7jX6u",
        "database": "shopweb_detect"
    }


class UatConfig(Config):
    """正式环境"""
    BASE_URL = "https://www.ovopark.com/"
    USERNAME_WDZ = '店探产品测试账号'
    PASSWORD_WDZ = '666666'
    USERNAME_APP = '18114588627'
    PASSWORD_APP = '12qwaszx'


# 环境关系映射，方便切换多环境配置
env = {
    "test": TestConfig,
    "uat": UatConfig
}
